<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->baseUrl;?>/public/admin/index.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->baseUrl;?>/public/admin/public.css" />
<title>系统</title>
<base target="frame_main" />
<script>
function reload(){
    frame_main.location.reload();
}
$(document).ready(function (){
    $(".MenuHeadBar").click( function (){
         $(".MenuHeadBody").hide()
        if( !$(this).next().hasClass("open")){
           $(this).find(".icon").attr("src", $(this).find(".icon").attr("src").replace("ico_switch_close", "ico_switch_open"));
           $(this).next().removeClass("close");
           $(this).next().addClass("open");
           $(this).next(".MenuHeadBody").show();
       }else{
           $(this).next().removeClass("open");
           $(this).next().addClass("close");
           $(this).find(".icon").attr("src", $(this).find(".icon").attr("src").replace("ico_switch_open", "ico_switch_close"));
          $(this).next(".MenuHeadBody").hide();
       }
    });
    $("#top").find('a').click(function (){
        var id=$(this).attr('id');
        $(".MenuHead").hide();
        $("#top_"+id).show();
     });
});
</script>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="Framer">
    <tr class="FrameHeader">
        <td height="80"><div class="FrameHeader">
                <div class="HeaderTop">
                    <div class="HeaderTopLeft"></div>
                    <div class="HeaderTopLogo"><a href="http://www.vodcms.com/" target="_blank"><?php echo $GLOBALS['license']['version']; ?></a></div>
                    <div class="HeaderTopNav">
                        <ul>
                            <li class="welcome">Hi!: <font class="username"><?php echo Yii::app()->cookies->get('admin');?></font></li>
                            <li><a href="#" target="_blank">浏览前台</a></li>
                            <li><a href="index/report/" target="frame_main">寻求帮助</a></li>
                            <li><a href="http://www.vodcms.com/bbs" target="_blank">社区交流</a></li>
                            <li><a href="?mod=index&action=main" target="frame_main">管理后台</a></li>
                            <li><a href="javascript:void(0)" onclick="javascript:reload();">刷新页面</a></li>
                            <li><a href="?mod=administrator&action=modifypass" target="frame_main" >修改登录密码</a></li>
                            <li><a href="?mod=index&action=logout" onClick="return confirm('确认退出吗?')" target="_top">退出管理</a></li>
                        </ul>
                    </div>
                    <div class="HeaderTopRight"></div>
                </div>
                <div class="HeaderNav">
                    <div class="HeaderNavLeft">&nbsp;</div>
                    <div class="HeaderNavBody" id="top">
                        <ul>
                            <?php foreach($this->menu->findAll('menu_parent_id=0') as $row):?>
                            <li><a href="javascript:void(0)" id="<?php echo $row['menu_id'];?>"><?php echo $row['menu_name'];?></a></li>
                            <?php endforeach;?>
                        </ul>
                    </div>
                    <div class="HeaderNavRight">&nbsp;</div>
                </div>
            </div></td>
    </tr>
    <tr class="FrameBody">
        <td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="FrameBody">
                <tr>
                    <td class="BodyMenu" id="control_menu" valign="top"><?php echo $this->renderPartial('menu');?></td>
                    <td class="BodyMain"><iframe id="frame_main" name="frame_main" src="?mod=index&action=main" scrolling="yes" frameborder="0" width="100%" height="100%"></iframe></td>
                </tr>
            </table></td>
    </tr>
</table>
<div class="hide">
    <div id="App-Version-Prompt">
        <div id="App-Version-Prompt-Body">loading...</div>
    </div>
</div>
</body>
</html>